package com.tsll.entity;

import java.io.Serializable;

/**
 * 
 * @TableName booktype
 */
public class Booktype implements Serializable {
    /**
     * 图书类型id
     */
    private Integer booktypeId;

    /**
     * 图书类型名称
     */
    private String booktypes;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getBooktypeId() {
        return booktypeId;
    }

    /**
     * 
     */
    public void setBooktypeId(Integer booktypeId) {
        this.booktypeId = booktypeId;
    }

    /**
     * 
     */
    public String getBooktypes() {
        return booktypes;
    }

    /**
     * 
     */
    public void setBooktypes(String booktypes) {
        this.booktypes = booktypes;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Booktype other = (Booktype) that;
        return (this.getBooktypeId() == null ? other.getBooktypeId() == null : this.getBooktypeId().equals(other.getBooktypeId()))
            && (this.getBooktypes() == null ? other.getBooktypes() == null : this.getBooktypes().equals(other.getBooktypes()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBooktypeId() == null) ? 0 : getBooktypeId().hashCode());
        result = prime * result + ((getBooktypes() == null) ? 0 : getBooktypes().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", booktypeId=").append(booktypeId);
        sb.append(", booktypes=").append(booktypes);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}